<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php $_title;?></title>

<link rel="stylesheet" href="/theme/<?=$_theme?>/common/css/css.css" type="text/css" />
<!-- 셀렉트박스 -->
<script type='text/javascript' src="/theme/<?=$_theme?>/common/js/jquery.min.js"></script>
<!-- //셀렉트박스 -->
<!-- 모달팝업관련 -->
<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery.model.js"></script>
<!-- //모달팝업관련 -->
<!-- 패밀리사이트관련 -->
<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/jQuery.selectlink.js"></script>
<!-- //패밀리사이트관련 -->
<script type="text/javascript" src="/theme/<?=$_theme?>/common/js/etc.js" /></script>

</head>

<body>
<div id="outline">

    <div id="logo"><a href="index.html"><img src="/theme/<?=$_theme?>/images/logo.png" /></a></div>
    <div id="sub_visual"><img src="/theme/<?=$_theme?>/images/sub_topimg_01.jpg" /></div>
    
    <div id="menu">
      <table bgcolor="#383838">
      
      <!-- 탑메뉴 -->
      <tr><td style="padding:15px 0 15px 15px;">
        <table>
        <tr><td class="t_menu"><a href="index.html" class="top">HOME</a></td></tr>
        <!-- 로그인 -->
        <tr><td class="t_menu"><a href="00_member_login.html" class="top">LOG-IN</a></td></tr>
        <tr><td class="t_menu"><a href="00_member_agree.html" class="top">MEMBERSHIP</a></td></tr>
        <!-- //로그인 -->
        <!-- 로그아웃 --
        <tr><td class="t_menu"><a href="index.html" class="top">LOG-OUT</a></td></tr>
        <tr><td class="t_menu"><a href="00_member_amend.html" class="top">MEMBER INFO</a></td></tr>
        <!-- //로그아웃 -->
        <tr><td class="t_menu"><a href="00_sitemap.html" class="top">SITEMAP</a></td></tr>
        </table>
      </td></tr>
      <!-- //탑메뉴 -->
      
      <!-- 메인메뉴 -->
      <tr><td width="150px">
        <table width="100%">
        <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
        <tr><td height="1" bgcolor="#444444"></td></tr>
        <?php
		//Get the XML document loaded into a variable
		
		$xml = file_get_contents('./application/views/content/menu.xml');
		//Set up the parser object
		$parser = new XMLParser($xml);

		//Work the magic...
		$parser->Parse();
		$_topIndex = 0;
		$_leftIndex =0; 	
		
		foreach($parser->document->menu as $menu){
			
			if($_group== $menu->group[0]->tagData){
				echo "<tr><td class=\"m_menu\" style=\"width:150px; background-color:#fe6600;background-image:url(/theme/lastest/images/mu_on.gif);\"><a href=\"{$menu->hyperlink[0]->tagData}\" class=\"main_on\">{$menu->menuname[0]->tagData}</a></td></tr>\n";
			}else{
				echo "<tr><td class=\"m_menu\"><a href=\"{$menu->hyperlink[0]->tagData}\" class=\"main\">{$menu->menuname[0]->tagData}</a></td></tr>\n";
			}
			echo "<tr><td height=\"1\" bgcolor=\"#2d2d2d\"></td></tr>\n";
			echo "<tr><td height=\"1\" bgcolor=\"#444444\"></td></tr>\n";
					
			if(@sizeof($parser->document->menu[$_topIndex]->menuitem) > 0 && $_group== $menu->group[0]->tagData){
				$_leftIndex = 0;
				echo " <tr><td background=\"/theme/lastest/images/menu_sbg.gif\">\n";
				echo " <table width=\"150\">\n";
				foreach($parser->document->menu[$_topIndex]->menuitem as $left) {	
					if($_leftIndex > 0) echo "<tr><td height=\"1\" bgcolor=\"#e5e5e5\"></td></tr>\n";
					$left_on = ($_menu_id == $left->id[0]->tagData) ? 'sub_on' : 'sub';
					
					echo "<tr><td class=\"s_menu\"><a href=\"{$left->hyperlink[0]->tagData}\" class=\"{$left_on}\">{$left->menuitemname[0]->tagData}</a></td></tr>\n";
					$_leftIndex++;
				}
				echo "	</table>\n";
			}
			//echo "</li>\n";*/
		
			
			$_topIndex++;	
		}
		?>
        
       <!--<tr><td class="m_menu"><a href="01_01_01.html" class="main">교회소개</a></td></tr>
        <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
        <tr><td height="1" bgcolor="#444444"></td></tr>
        <tr><td class="m_menu"><a href="02_01_01.html" class="main">설교방송</a></td></tr>
        <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
        <tr><td height="1" bgcolor="#444444"></td></tr>
        <tr><td class="m_menu"><a href="03_01_01.html" class="main">교육&amp;훈련</a></td></tr>
        <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
        <tr><td height="1" bgcolor="#444444"></td></tr>
        <tr><td class="m_menu"><a href="04_01_01.html" class="main">기관&amp;사역</a></td></tr>
        <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
        <tr><td height="1" bgcolor="#444444"></td></tr>
        <tr><td class="m_menu"><a href="05_01_01.html" class="main">교회소식</a></td></tr>
        <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
        <tr><td height="1" bgcolor="#444444"></td></tr>
        <tr><td class="m_menu"><a href="06_01_01.html" class="main">나눔마당</a></td></tr>
        <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
        <tr><td height="1" bgcolor="#444444"></td></tr>
        <tr><td class="m_menu"><a href="07_01_01.html" class="main">커뮤니티</a></td></tr>
        <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
        <tr><td height="1" bgcolor="#444444"></td></tr>  --> 
        </table>
      </td></tr>
      <!-- //메인메뉴 -->
      
      <tr><td height="57px"></td></tr>
      
      <!-- 퀵메뉴 -->
      <tr><td width="150px" bgcolor="#282828">
        <table width="100%">
        <tr><td colspan="2" class="q_menu_t">QUICK MENU</td></tr>
        
        <tr><td colspan="2" height="1" bgcolor="#383838"></td></tr>
        <tr>
        <td width="40"><img style="padding-left:15px;" src="/theme/<?=$_theme?>/images/icon_q01.gif" /></td>
        <td width="110" class="q_menu"><a href="01_04_01.html" class="q">예배안내</a></td>
        </tr>
        <tr><td colspan="2" height="1" bgcolor="#383838"></td></tr>
        <tr>
        <td width="40"><img style="padding-left:15px;" src="/theme/<?=$_theme?>/images/icon_q02.gif" /></td>
        <td width="110" class="q_menu"><a href="02_01_01.html" class="q">설교방송</a></td>
        </tr>
        <tr><td colspan="2" height="1" bgcolor="#383838"></td></tr>
        <tr>
        <td width="40"><img style="padding-left:15px;" src="/theme/<?=$_theme?>/images/icon_q03.gif" /></td>
        <td width="110" class="q_menu"><a href="03_01_01.html" class="q">교육부서</a></td>
        </tr>
        <tr><td colspan="2" height="1" bgcolor="#383838"></td></tr>
        <tr>
        <td width="40"><img style="padding-left:15px;" src="/theme/<?=$_theme?>/images/icon_q04.gif" /></td>
        <td width="110" class="q_menu"><a href="#" class="q">온라인주보</a></td>
        </tr>
        <tr><td colspan="2" height="1" bgcolor="#383838"></td></tr>
        <tr>
        <td width="40"><img style="padding-left:15px;" src="/theme/<?=$_theme?>/images/icon_q05.gif" /></td>
        <td width="110" class="q_menu"><a href="00_map.html" class="q">오시는길</a></td>
        </tr>
        <tr><td colspan="2" height="1" bgcolor="#383838"></td></tr>

        </table>
      </td></tr>
      <!-- //퀵메뉴 -->
      
      <tr><td height="1px"></td></tr>
      
      </table>
    </div>
    
	<!-- content -->
    <div id="content">
    <table>

    <tr>
    <td width="840px">
      <table>
      <tr><td colspan="3" height="160px"></td></tr>
      
      <tr>
        <td width="20"></td>
        <!-- 서브내용 -->
        <td width="770px">
        	<table>
            <!-- 타이틀 영역 -->
            <tr><td style="padding-bottom:20px;"><span class="text_mt">교회소개</span><span class="text_line">ㅣ</span><span class="text_st"><?php echo $_title;?></span></td></tr>
            <tr><td>
            	<table><tr><td width="475" height="2" bgcolor="#383838"><td></td></tr></table>
            </td></tr>
            <tr><td style="padding:20px 0 30px 0;"><strong>예배를 통한 이땅의 부흥을 꿈구며 "디자인교회"</strong></td></tr>
            <!-- //타이틀 영역 -->
            
<!-- 내용 -->
            <tr><td style="padding-bottom:460px;">
			<?php
				if($_plugin == 'N'){ 
					$this->load->view($_content);
				}else{
					echo $_content;
				}
			?>
            </td></tr>
<!-- //내용 -->
            
            <tr><td height="50"></td></tr>
            </table>
        </td>	
        <!-- //서브내용 -->
        
        <td width="50"></td>
      </tr>
      </table>
    </td>
    <td style="width:150px; background-color:#383838;">
    </tr>
    <!-- //content -->
    
    <!-- footer -->
    <tr>
    	<!-- bottom -->
        <td width="840" style="padding-top:20px;">
          <table>
          <tr>
            <td width="20"></td>
            <td width="770px">
                <table width="100%">
                <tr><td height="1" bgcolor="#e2e2e2"></td></tr>
                <tr><td height="15px"></td></tr>
                <!-- bottom-menu -->
                <tr><td>
                    <table>
                    <tr>
                    <td width="590">
                        <table>
                        <tr>
                        <td class="bottom_menu"><a href="00_info_terms.html" class="bottom">이용약관</a></td>
                        <td><img src="/theme/<?=$_theme?>/images/bottom_line.gif" align="absmiddle" /></td>
                        <td class="bottom_menu"><a href="00_info_personal.html" class="bottom">개인정보취급방침</a></td>
                        <td><img src="/theme/<?=$_theme?>/images/bottom_line.gif" /></td>
                        <td class="bottom_menu"><a href="00_info_mail.html" class="bottom">이메일수집거부</a></td>
                        <td><img src="/theme/<?=$_theme?>/images/bottom_line.gif" /></td>
                        <td class="bottom_menu"><a href="00_map.html" class="bottom">오시는길</a></td>
                        <td width="50px"></td>
                        <td style="padding-right:3px;"><a href="#"><img src="/theme/<?=$_theme?>/images/icon_twiter.gif" title="트위터" /></a></td>
                        <td style="padding-right:3px;"><a href="#"><img src="/theme/<?=$_theme?>/images/icon_face.gif" title="페이스북" /></a></td>
                        <td style="padding-right:3px;"><a href="#"><img src="/theme/<?=$_theme?>/images/icon_meto.gif" title="미투데이" /></a></td>
                        </tr>
                        </table>
                    </td>
                    <td width="180" align="right">
                      <table border="0" cellpadding="0" cellspacing="0">
                      <tr>
                      <td><a href="index.html"><img onmouseover="this.src='/theme/<?=$_theme?>/images/bmu_01_on.gif';" onmouseout="this.src='/theme/<?=$_theme?>/images/bmu_01_off.gif';" src="/theme/<?=$_theme?>/images/bmu_01_off.gif" border="0" /></a></td>
                      <td width="20"></td>
                      <td><a href="#"><img onmouseover="this.src='/theme/<?=$_theme?>/images/bmu_02_on.gif';" onmouseout="this.src='/theme/<?=$_theme?>/images/bmu_02_off.gif';" src="/theme/<?=$_theme?>/images/bmu_02_off.gif" border="0" /></a></td>
                      </tr>
                      </table>
                    </td>
                    </tr>
                    </table>
                </td></tr>
                <!-- //bottom-menu -->
                <!-- bottom-add -->
                <tr><td class="bottom_text01">
                서울시 서초구 방배동 2100 태원빌딩 3층<img src="/theme/<?=$_theme?>/images/bottom_line.gif" />우편번호:137-060<img src="/theme/<?=$_theme?>/images/bottom_line.gif" />TEL <strong>02-594-5690</strong><img src="/theme/<?=$_theme?>/images/bottom_line.gif" />FAX <strong>02-594-5693</strong>
                </td></tr>
                <tr><td class="bottom_text02">
                COPYRIGHT &copy; <strong>CHURCH</strong>. ALL RIGHTS RESERUED.<br />
                Design by <a href="http://www.webter.co.kr" target="_blank">WEBTER Communication</a>, Inc.
                </td></tr>
                <!-- //bottom-add -->
                </table>
            </td>
            <td width="50"></td>
          </tr>
          </table>
        </td>
        <!-- //bottom -->
        <!-- familysite -->
        <td style="width:150px; background-color:#383838; padding-top:20px;">
            <table width="100%">
            <tr><td height="1" bgcolor="#2d2d2d"></td></tr>
            <tr><td height="1" bgcolor="#444444"></td></tr>
            <tr><td style="padding-top:45px;">
            <div class="footer_family">
                <div id="select_familysite_main" class="link_select">
                    <a class="se" href="javascript:void(0);"></a>
                    <div class="list_wrap">
                        <ul>
                        <li><a href="http://www.webter.co.kr" target="_blank">패밀리사이트 1</a></li>
                        <li><a href="http://www.webter.co.kr" target="_blank">패밀리사이트 2</a></li>
                        <li><a href="http://www.webter.co.kr" target="_blank">패밀리사이트 3</a></li>
                        <li><a href="http://www.webter.co.kr" target="_blank">패밀리사이트 4</a></li>
                        <li><a href="http://www.webter.co.kr" target="_blank">패밀리사이트 5</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <script>
                $('#main').selectlink({
                    id:'#select_familysite_main',
                    listPosition:'dropup'
                },function(){
                });
            </script>
            </td></tr>
            </table>
        </td>
        <!-- //familysite -->
    </tr>
    <!-- //footer -->
    
    </table>
    </div>

</div>
</body>
</html>